<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>seajs+jquery+artTemplate+q例子</title>
</head>
<body>

	<nav>
		<a href="#!category/index">首页</a> &nbsp;|&nbsp;
		<a href="#!category/page">page页</a> &nbsp;|&nbsp;
		<a href="#!category/page/a:aaaaaaa&b:bbbbbbbb&c:ccccccccccccc">带参数的page页</a>
	</nav>
	

	<hr>

	<!-- 单页的内容容器 -->
	<div id="main_wrap"></div>


<script src="./static/js/lib/jquery.min.js"></script>
<script src="./static/js/lib/sea.js"></script>
<script>
	/**
     * seajs配置信息
     */
    seajs.config({
        base: "./static/"  //seajs的基础路径（组织人事，元数据项目的模块）
        ,charset: 'utf-8'
        ,map: [[ /^(.*\.(?:css|js|html))(.*)$/i, '$1?v=_VERSION_']]  //加上版本号，清缓存用
        //公共路径
        ,paths:{
            //"commonStaticDirectory":""  //最后不带反斜杠
        }
        //模块路径配置
        ,alias: {}
    });

    $(function() {
         /* 初始化路由 */
        seajs.use("js/router.js", function (Router) {
            new Router();
        });
    });
</script>

</body>
</html>